package com.why.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.why.entity.ProductCommentsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.why.vo.CommentCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品评价 
 * 
 * @author why
 * @email 1585049082@qq.com
 * @date 2021-10-24 20:16:08
 */
@Mapper
public interface ProductCommentsDao extends BaseMapper<ProductCommentsEntity> {
	public List  selectCommontsByProductId(@Param("page") IPage page, @Param("productId") Long productId);

	public Integer selectCommentCount(@Param("productId")Long productId,@Param("commType")Integer commType);
}
